<!DOCTYPE html>
<html>
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>    
        function byBus() {
            return new Promise((resolve, reject) => {
                setTimeout(() => {
                    resolve('乘坐地铁')
                }, 1000);
            });
        }
        function doWork() {
            return new Promise((resolve, reject) => {
                setTimeout(() => {
                    resolve('腾讯会议上课');
                }, 2000);
            });
        }
        (async function() {
            console.log(await byBus());
            console.log(await doWork());
        })();
    </script>
</body>
</html>